<html>
<head>
    <#include "/common/header.ftl">
</head>
<body>
<div id="wrapper" class="toggled">
    <#--侧边栏-->
    <#include "/common/nav.ftl">
    <#--主要内容区域-->
    <div id="page-content-wrapper">
        <div class="container-fluid">
            <div class="col-md-12 column">
                <form role="form" method="post" action="/sell/seller/category/save">
                    <input type="hidden" name="categoryId" value="${(category.categoryId)!''}">
                    <div class="form-group">
                        <label>名称</label>
                        <input type="text" class="form-control" name="categoryName" value="${(category.categoryName)!''}"/>
                    </div>
                    <div class="form-group">
                        <label>编码</label>
                        <input type="number" class="form-control"
                               <#if (category.categoryType)??>
                                   <#--如果type属性不为空，则是修改页面，设置为只读-->
                                   readonly
                               </#if>
                               name="categoryType" value="${(category.categoryType)!''}"/>
                    </div>
                    <button type="submit" class="btn btn-default">提交</button>
                </form>
            </div>
        </div>
    </div>
</div>
</body>
</html>